package com.wut.clock.common.constant;

/**
 * @author ZYH
 * @unit D9Lab
 * @description 消息常量
 * @date 2022/6/1 16:38
 */
public class MessageConstant {

    public enum Type {

        COMMENT("评论",0),
        FOLLOWER("粉丝",1),
        LIKE("赞",2),
        COLLECTION("收藏",3),
        NOTIFICATION("系统通知",4),
        DISLIKE("踩",5);


        private final String desc;
        private final Integer code;

        Type(String desc, Integer code){
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }
    }

    public enum TargetType {

        COMMENT("评论",1),
        ARTICLE("文章",0);

        private final String desc;
        private final Integer code;

        TargetType(String desc, Integer code){
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }
    }

    public enum Status {

        CHECKING("已读",1),
        AVAILABLE("未读",0);

        private final String desc;
        private final Integer code;

        Status(String desc, Integer code){
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }
    }
}
